package com.lb.pdm.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * <p>
 * 证件申请表
 * </p>
 *
 * @author pdm
 * @since 2025-10-29
 */
@Data
@TableName("certificate_application")
@Schema(name = "CertificateApplication对象", description = "证件申请表")
public class CertificateApplication implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "申请ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /*@Schema(description = "申请编号")
    @TableField("application_no")
    private String applicationNo;*/

    @Schema(description = "申请人ID")
    @TableField("person_id")
    private Long personId;

    @Schema(description = "证件类型")
    @TableField("certificate_type")
    private String certificateType;

    @Schema(description = "申请类型：1-首次申领，2-换领，3-补领，4-注销")
    @TableField("application_type")
    private Byte applicationType;

    @Schema(description = "申请原因")
    @TableField("application_reason")
    private String applicationReason;

    @Schema(description = "申请日期")
    @TableField("application_date")
    private Date applicationDate;

    @Schema(description = "申请状态：1-待审核，2-制证中，3-已完成，4-已拒绝")
    @TableField("application_status")
    private Byte applicationStatus;

    @Schema(description = "审批时间")
    @TableField("approval_time")
    private Date approvalTime;

    @Schema(description = "审批人ID")
    @TableField("approval_by")
    private Long approvalBy;

    /*@Schema(description = "完成时间")
    @TableField("completion_time")
    private Date completionTime;*/

    /*@Schema(description = "生成的证件ID")
    @TableField("certificate_id")
    private Long certificateId;*/

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Schema(description = "创建人ID")
    @TableField("create_by")
    private Long createBy;

    @Schema(description = "更新人ID")
    @TableField("update_by")
    private Long updateBy;
}
